/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.HashMap;
/*     */ import java.util.Map;
/*     */ import org.lwjgl.util.vector.Matrix4f;
/*     */ 
/*     */ public class bv
/*     */   implements n {
/*     */   public bv j;
/*     */   public String c;
/*     */   public int r;
/*     */   public bv f;
/*     */   public hs s;
/*     */   private Boolean m;
/*     */   public Matrix4f l;
/*     */   public Matrix4f t;
/*     */   public Matrix4f d;
/*     */   public Matrix4f z;
/*     */   public Matrix4f i;
/*     */   public ArrayList<bv> w;
/*     */   public HashMap<fu, Float> q;
/*     */   public HashMap<String, HashMap<Integer, Matrix4f>> g;
/*     */   
/*     */   public bv(String str, int i, bv bv1, hs hs1) {
/*  26 */     this.j = null;
/*  27 */     this.d = new Matrix4f();
/*  28 */     this.z = new Matrix4f();
/*  29 */     this.i = new Matrix4f();
/*  30 */     this.w = new ArrayList<>();
/*  31 */     this.q = new HashMap<>();
/*  32 */     this.g = new HashMap<>();
/*  33 */     this.c = str;
/*  34 */     this.r = i;
/*  35 */     this.f = bv1;
/*  36 */     this.s = hs1;
/*     */   }
/*     */   
/*     */   public bv(bv bv1, bv bv2, hs hs1) {
/*  40 */     this.j = null;
/*  41 */     this.d = new Matrix4f();
/*  42 */     this.z = new Matrix4f();
/*  43 */     this.i = new Matrix4f();
/*  44 */     this.w = new ArrayList<>();
/*  45 */     this.q = new HashMap<>();
/*  46 */     this.g = new HashMap<>();
/*  47 */     this.c = bv1.c;
/*  48 */     this.r = bv1.r;
/*  49 */     this.s = hs1;
/*  50 */     this.f = bv2;
/*  51 */     for (Map.Entry<fu, Float> entry : bv1.q.entrySet()) {
/*  52 */       this.q.put(hs1.h.get(((fu)entry.getKey()).t), (Float)entry.getValue());
/*     */     }
/*  54 */     this.g = new HashMap<>(bv1.g);
/*  55 */     this.t = bv1.t;
/*  56 */     this.l = bv1.l;
/*  57 */     bv1.j = this;
/*     */   }
/*     */   
/*     */   public void v(bv bv1, ArrayList<bv> arrayList) {
/*  61 */     for (int i = 0; i < bv1.w.size(); i++) {
/*  62 */       bv bv2 = bv1.w.get(i);
/*  63 */       this.w.add(arrayList.get(bv2.r));
/*  64 */       ((bv)arrayList.get(bv2.r)).f = this;
/*     */     } 
/*     */   }
/*     */   
/*     */   public boolean v() {
/*  69 */     if (this.m == null) {  } else {  }  return this.m.booleanValue();
/*     */   }
/*     */   
/*     */   public void z(Matrix4f matrix4f) {
/*  73 */     this.l = matrix4f;
/*     */   }
/*     */   
/*     */   public void v(bv bv1) {
/*  77 */     this.w.add(bv1);
/*     */   }
/*     */   
/*     */   public void v(fu fu1, float f) {
/*  81 */     if (this.c.equals("blender_implicit")) {
/*  82 */       throw new UnsupportedOperationException("NO.");
/*     */     }
/*  84 */     this.q.put(fu1, Float.valueOf(f));
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void y() {
/*  96 */     for (bv bv1 : this.w) {
/*  97 */       bv1.v(this.l);
/*     */     }
/*     */   }
/*     */   
/*     */   public void t() {
/* 102 */     this.t = Matrix4f.invert(this.l, null);
/*     */   }
/*     */   
/*     */   public void h() {
/* 106 */     this.d.setIdentity();
/*     */   }
/*     */   
/*     */   public void v(nu nu1, Matrix4f matrix4f) {
/*     */     HashMap<Object, Object> hashMap;
/* 111 */     if (this.g.containsKey(nu1.q.w)) {
/* 112 */       hashMap = (HashMap)this.g.get(nu1.q.w);
/*     */     } else {
/* 114 */       hashMap = new HashMap<>();
/*     */     } 
/* 116 */     hashMap.put(Integer.valueOf(nu1.g), matrix4f);
/* 117 */     this.g.put(nu1.q.w, hashMap);
/*     */   }
/*     */ 
/*     */   
/*     */   public void z() {
/*     */     Matrix4f matrix4f1, matrix4f2;
/* 123 */     if (this.s.o.hasAnimations() && this.s.f != null) {
/* 124 */       nu nu = this.s.f.l.get(this.s.f.d);
/* 125 */       matrix4f1 = (nu.i.size() > this.r) ? nu.i.get(this.r) : new Matrix4f();
/* 126 */       matrix4f2 = (nu.w.size() > this.r) ? nu.w.get(this.r) : new Matrix4f();
/*     */     } else {
/* 128 */       matrix4f1 = this.l;
/* 129 */       matrix4f2 = this.t;
/*     */     } 
/* 131 */     Matrix4f matrix4f3 = new Matrix4f();
/* 132 */     Matrix4f matrix4f4 = new Matrix4f();
/* 133 */     Matrix4f.mul(matrix4f1, matrix4f2, matrix4f3);
/* 134 */     Matrix4f.mul(matrix4f2, this.d = (this.f != null) ? Matrix4f.mul(this.f.d, matrix4f3, v()) : matrix4f3, matrix4f4);
/* 135 */     Matrix4f.invert(matrix4f4, this.i);
/* 136 */     for (bv bv1 : this.w) {
/* 137 */       bv1.z();
/*     */     }
/*     */   }
/*     */   
/*     */   public Matrix4f v() {
/* 142 */     return (this.d == null) ? (this.d = new Matrix4f()) : this.d;
/*     */   }
/*     */   
/*     */   public void v() {
/* 146 */     nu nu = this.s.v();
/* 147 */     if (nu != null) {
/* 148 */       HashMap hashMap = this.g.get(nu.q.w);
/* 149 */       Matrix4f matrix4f1 = (Matrix4f)hashMap.get(Integer.valueOf(nu.g));
/* 150 */       Matrix4f matrix4f2 = new Matrix4f();
/* 151 */       Matrix4f.mul(matrix4f1, this.t, matrix4f2);
/* 152 */       this.d = (this.d == null) ? matrix4f2 : Matrix4f.mul(this.d, matrix4f2, this.d);
/*     */     } 
/* 154 */     for (Map.Entry<fu, Float> entry : this.q.entrySet()) {
/* 155 */       ((fu)entry.getKey()).v(this, ((Float)entry.getValue()).floatValue());
/*     */     }
/* 157 */     h();
/*     */   }
/*     */ 
/*     */   
/*     */   public float v(float f, xw xw1) {
/* 162 */     return f;
/*     */   }
/*     */ 
/*     */   
/*     */   public float v(xw xw1) {
/* 167 */     return 0.0F;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\bv.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */